package com.ss.android.article.browser.download;

import android.os.Handler;
import android.os.Looper;
import android.os.Message;

import com.bytedance.common.utility.collection.WeakHandler;
import com.ss.android.article.browser.download.internal.DownloadListener;
import com.ss.android.article.browser.download.internal.DownloadTask;

public final class aa implements WeakHandler.Callback, DownloadListener {
    public interface a$a {
        void a(DownloadTask arg1);
    }

    public interface a$b {
        void a(DownloadTask arg1);

        void a(DownloadTask arg1, long arg2, long arg3);

        void b(DownloadTask arg1);

        void c(DownloadTask arg1);

        void d(DownloadTask arg1);

        void e(DownloadTask arg1);

        void f(DownloadTask arg1);
    }

    public a$b a;
    public a$a b;
    private Handler c;

    public aa() {
        this.c = new WeakHandler(Looper.getMainLooper(), ((WeakHandler.Callback)this));
        DownloadTaskManager.getInstance().e = ((DownloadListener)this);
    }

    public final void a(DownloadTask arg3) {
        this.c.post(new com.ss.android.article.browser.download.bb(this, arg3));
    }

    public final void a(DownloadTask arg9, long arg10, long arg12) {
        this.c.post(new g(this, arg9, arg10, arg12));
    }

    public final void b(DownloadTask arg3) {
        this.c.post(new c(this, arg3));
    }

    public final void c(DownloadTask arg3) {
        this.c.post(new com.ss.android.article.browser.download.d(this, arg3));
    }

    public final void d(DownloadTask arg3) {
        this.c.post(new e(this, arg3));
    }

    public final void e(DownloadTask arg3) {
        this.c.post(new f(this, arg3));
    }

    public final void f(DownloadTask arg3) {
        this.c.post(new h(this, arg3));
    }

    public final void handleMsg(Message message) {
    }
}

